from django.urls import path
from wagtail.api.v2.router import WagtailAPIRouter
from .viewsets import BlogPagesAPIViewSet

app_name = 'blog'

api_router = WagtailAPIRouter('wagtailapi')

# Register the custom BlogPages API endpoint
api_router.register_endpoint('pages', BlogPagesAPIViewSet)

urlpatterns = [
    path('', api_router.urls),
]
